/*
 * @Date: 2025-04-21 11:21:23
 * @LastEditors: Csir 2215995096@qq.com
 * @LastEditTime: 2025-07-17 14:04:36
 * @FilePath: \infomng-ui\src\api\workshopLargeScreen.js
 */
import request from "@/router/axios";

// 工单生产进度表格
export function workOrderProductionProgressTable(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/workOrderProductionProgressTable",
    method: "post",
    data: data,
  });
}

// 实时产能趋势图
export function realTimeCapacityTrend(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/realTimeCapacityTrend",
    method: "post",
    data: data,
  });
}

// 客诉率趋势
export function complaintRateTrend(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/complaintRateTrend",
    method: "post",
    data: data,
  });
}
// 退货率趋势
export function returnRateTrend(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/returnRateTrend",
    method: "post",
    data: data,
  });
}

// 车间在手订单头数趋势
export function orderHeadCountTrend(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/orderHeadCountTrend",
    method: "post",
    data: data,
  });
}

// 产线FQC批合格率
export function lineFqcBatchPassRate(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/lineFqcBatchPassRate",
    method: "post",
    data: data,
  });
}

// 车间FQC批合格率
export function fqcBatchPassRate(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/fqcBatchPassRate",
    method: "post",
    data: data,
  });
}

// 工厂-产能效率
export function productionCapacityEfficiency(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/productionCapacityEfficiency",
    method: "post",
    data: data,
  });
}

// 生产计划月度达成率趋势
export function productionPlanAchievementRate(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/productionPlanAchievementRate",
    method: "post",
    data: data,
  });
}

//承诺客户达成率趋势
export function commitCustomerAchievementRate(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/commitCustomerAchievementRate",
    method: "post",
    data: data,
  });
}

// 报废率趋势
export function scrapRateTrend(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/scrapRateTrend",
    method: "post",
    data: data,
  });
}

// 产线-关键工序不良率
export function defectRateProcesses(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/defectRateProcesses",
    method: "post",
    data: data,
  });
}
